<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class TaskBook extends Model
{
    protected $fillable = [
        'selection_id',
        'specific_tasks',
        'schedule_requirements',
        'published_at',
    ];

    protected $casts = [
        'published_at' => 'datetime',
    ];

    public function topicSelection()
    {
        return $this->belongsTo(TopicSelection::class, 'selection_id');
    }
} 